home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / sandwichcooking.swf / scripts / DefineButton2_492 / BUTTONCONDACTION on(release).as < prev    next >
Text File  |  2007-09-27  |  1KB  |  61 lines

  1. on(release){
  2.    this.stopDrag();
  3.    if(this.hitTest(_root.chr.idrop))
  4.    {
  5.       i = 0;
  6.       while(i < 6)
  7.       {
  8.          _root.txt["no" + i + "-2"]._visible = false;
  9.          i++;
  10.       }
  11.       if(_root.chr._currentframe == 1)
  12.       {
  13.          _root.chr.gotoAndStop(7);
  14.          this._x = targetX;
  15.          this._y = targetY;
  16.          this._visible = false;
  17.          this._parent.bridge._visible = true;
  18.       }
  19.       else if(_root.chr._currentframe == 2)
  20.       {
  21.          _root.chr.gotoAndStop(7);
  22.          this._x = targetX;
  23.          this._y = targetY;
  24.       }
  25.       else if(_root.chr._currentframe == 3)
  26.       {
  27.          _root.chr.gotoAndStop(7);
  28.          this._x = targetX;
  29.          this._y = targetY;
  30.       }
  31.       else if(_root.chr._currentframe == 4)
  32.       {
  33.          _root.chr.gotoAndStop(7);
  34.          this._x = targetX;
  35.          this._y = targetY;
  36.       }
  37.       else if(_root.chr._currentframe == 5)
  38.       {
  39.          _root.chr.gotoAndStop(7);
  40.          this._x = targetX;
  41.          this._y = targetY;
  42.       }
  43.       else if(_root.chr._currentframe == 6)
  44.       {
  45.          _root.chr.gotoAndStop(7);
  46.          this._x = targetX;
  47.          this._y = targetY;
  48.       }
  49.       else
  50.       {
  51.          this._x = targetX;
  52.          this._y = targetY;
  53.       }
  54.    }
  55.    else
  56.    {
  57.       this._x = targetX;
  58.       this._y = targetY;
  59.    }
  60. }
  61.